package files;

import java.io.BufferedReader;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;
import java.util.regex.Matcher;
import java.util.regex.Pattern;

public class Rmaschinelle {

	/**
	 * @param args
	 * @throws IOException 
	 */
	public static void main(String[] args) throws IOException {
		final Pattern pattern = Pattern.compile("^130");
		FileReader fr = new FileReader("D:/Normdaten/dma_V4.txt");
		BufferedReader reader = new BufferedReader(fr);
		String line = reader.readLine();
		while (line != null) {
			Matcher matcher = pattern.matcher(line);
			if (matcher.find()) {
				if (!line.contains("Maschinell"))
					System.err.println(line);
			}
			line = reader.readLine();
		}

	}

}
